package com.kancy.publicapi.common.util;

import com.kancy.publicapi.common.constant.Constants;

/**
 * @author kancy
 * @date 2019/12/23 11:55
 **/
public class PathUtils {

    public static boolean isWindows() {
        String os = System.getProperty("os.name");
        if (os != null && os.startsWith("Windows")) {
            return true;
        } else {
            return false;
        }
    }

    public static String getUploadPath() {
        if (isWindows()){
            return Constants.UPLOAD_PATH_WINDOS;
        }
        return Constants.UPLOAD_PATH_LINUX;
    }
}
